<{$nav}>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
	<tr valign="top">
		<td class="col_left">
			<div class="rblock">
				<div class="hd">
					<i class="icon_y icon_triangle_down"></i>
					<a href="?">按好友查询</a>
				</div>
				<{section name=i loop=$friends}>
					<div class="item <{if $friends[i].is_current}>current<{/if}>" onclick="location.href='?fid=<{$friends[i].friend_id}>'" style="cursor:pointer;" onmouseover="$(this).addClass('hover');" onmouseout="$(this).removeClass('hover');" >
						<{$friends[i].nickname}>
					</div>
				<{/section}>
			</div>
		</td>
		<td class="col_center article_list">
			<div class="hd">
				<div class="more">
					<script language="javascript" type="text/javascript">
						var recommend_article_manager = new function () {
							this.show = function () {
								$('#recommend_article_list :checkbox').each(function(){
									$(this).css('visibility', 'visible');
								});
								$('#ram_btn').hide();
								$('#ram_bar').show();
							}
							this.hide = function () {
								$('#recommend_article_list :checkbox').each(function(){
									$(this).css('visibility', 'hidden');
								});
								$('#ram_btn').show();
								$('#ram_bar').hide();
							}
							this.del = function (ob) {
								var ids	= '';
								$('#recommend_article_list :checkbox:checked').each(function(){
									ids += $(this).val() + ',';
								});
								if (ids) {
									UM_LAYER.open('recommend/show_del_article', {'ids': ids}, ob);
								} else {
									alert('请选中需要删除的文章！');
								}
							}
						}
					</script>
					<a id="ram_btn" onclick="recommend_article_manager.show();">
						文章管理
					</a>
					<div id="ram_bar" style=" display:none; position: fixed; top:40px; left:23%; border:1px solid #CCC; padding:5px; margin-top:5px; background-color:#FFE;">
						<span style="color:red;">▼</span>
						<button onclick="recommend_article_manager.del(this);" style="color:red; margin: 0 30px 0 10px;">删除选中的文章</button>
						<a onclick="recommend_article_manager.hide();">关闭</a>
					</div>
				</div>

				<a class="title" href="?type=recommend">好友推荐</a>
				<{if $current_group_title}>
					<span class="title"> > <{$current_group_title}></span>
				<{/if}>
			</div>
			<div id="recommend_article_list">
				<{if $articles}>
					<{section name=i loop=$articles}>
						<div class="item" onmouseover="$(this).addClass('hover');" onmouseout="$(this).removeClass('hover');">
							<div class="row1">
								<div class="txt">
									<span><{substr($articles[i].dt, 5, 5)}></span>
									<a href="/u.php?u=<{$articles[i].sender_id}>" target="_blank"><{$articles[i].friend_nickname}></a>
									<span>推荐</span>
									<{if $articles[i].circles}>
										<span>。来自：</span>
										<{section name=j loop=$articles[i].circles}>
											<a href="/circle.php?id=<{$articles[i].circles[j].id}>" target="_blank"><{$articles[i].circles[j].title}></a>
											<{if $smarty.section.j.last == false}>、<{/if}>
										<{/section}>
									<{/if}>
								</div>
								<div class="link">
									<a href="<{$articles[i].url}>" target="_blank"><{$articles[i].url}></a>
								</div>
							</div>
							<div class="row2">
								<div class="chk">
									<input type="checkbox" value="<{$articles[i].id}>" style="visibility:hidden;">
								</div>
								<a class="title" onclick="open_reader('<{$articles[i].id}>', 'recommend');">
									<{$articles[i].article_title}>
								</a>
							</div>
							<{if $articles[i].summary}>
								<div class="row3" onclick="open_reader('<{$articles[i].article_id}>', 'save');">
									<{if $articles[i].img_0}>
										<div class="img_clip"><img src="<{$articles[i].img_0}>!s120"></div>
									<{/if}>
									<{$articles[i].summary}>
								</div>
							<{elseif $articles[i].img_0 and $articles[i].img_1}>
								<div class="row3" onclick="open_reader('<{$articles[i].article_id}>', 'save');">
									<div class="img_clip"><img src="<{$articles[i].img_0}>!s120"></div>
									<div class="img_clip"><img src="<{$articles[i].img_1}>!s120"></div>
									<{if $articles[i].img_2}>
										<div class="img_clip"><img src="<{$articles[i].img_2}>!s120"></div>
									<{/if}>
								</div>
							<{else}>
								&nbsp;
							<{/if}>
						</div>
					<{/section}>
					<div class="page">
						<{if $page == 1 and $is_last == 1}>
							<img src="/images/arrow_page_left_grey.png">
							<img src="/images/arrow_page_right_grey.png">
						<{elseif $page == 1}>
							<img src="/images/arrow_page_left_grey.png">
							<img src="/images/arrow_page_right.png" onclick="location.href='?fid=<{$current_friend_id}>&page=<{$page+1}>'">
						<{elseif $is_last == 1}>
							<img src="/images/arrow_page_left.png"  onclick="location.href='?fid=<{$current_friend_id}>&page=<{$page-1}>'">
							<img src="/images/arrow_page_right_grey.png">
						<{else}>
							<img src="/images/arrow_page_left.png"  onclick="location.href='?fid=<{$current_friend_id}>&page=<{$page-1}>'">
							<img src="/images/arrow_page_right.png" onclick="location.href='?fid=<{$current_friend_id}>&page=<{$page+1}>'">
						<{/if}>
					</div>				
				<{else}>
					<div style="padding:20px; text-align:center;">
						没有推荐文章
					</div>
				<{/if}>
			</div>
		
		</td>
		<td class="col_right">
			&nbsp;
		</td>
	</tr>
</table>